package ooday01homework;

public class CarTest {
    public static void main(String[] args) {
        /*
        Car car = new Car();
        car.price = 40.0;
        car.color = "蓝色";
        car.brand = "宝马";
        car.start();
        car.run();
        car.stop();
        System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        Car car1 = new Car("奔驰", "白色", 50.0);
        car1.start();
        car1.run();
        car1.stop();

         */
        Car car = new Car();
        car.price=10.0;
        car.color = "黑色";
        car.brand = "奥迪";
        car.start();
        car.run();
        car.stop();
        Car car1 = new Car("奔驰", "绿色", 100.0);
        car1.stop();
        car1.run();
        car1.start();
    }
}
